package cn.gemiman.daoyi.module.cms.controller.admin.articledetail.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 文章新增/修改 Request VO")
@Data
public class ArticleDetailSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "12578")
    private Long id;

    @Schema(description = "站点编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "18359")
    @NotNull(message = "站点编号不能为空")
    private Long appSiteId;

    @Schema(description = "站点标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "11")
    @NotEmpty(message = "站点标识不能为空")
    private String appId;

    @Schema(description = "栏目编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "10356")
    @NotNull(message = "栏目编号不能为空")
    private Long categoryId;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "标题不能为空")
    private String title;

    @Schema(description = "副标题")
    private String subTitle;

    @Schema(description = "主图")
    private String mainPic;

    @Schema(description = "文章图册")
    private List<String> articlePhotos;

    @Schema(description = "简要")
    private String articleShortDesc;

    @Schema(description = "内容")
    private String articleContent;

    @Schema(description = "文章状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "文章状态不能为空")
    private Integer status;

    @Schema(description = "点击量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "点击量不能为空")
    private Integer viewNum;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "标签")
    private List<String> tags;

    /**
     * 来源类型
     */
    @Schema(description = "来源类型")
    private Integer originType;

    /**
     * 来源地址
     */
    @Schema(description = "来源地址")
    private String originUrl;
}
